<script setup lang="ts">
import cloud_example_1 from '@/assets/images/cloud/design/cloud_example_1.png';
import cloud_example_2 from '@/assets/images/cloud/design/cloud_example_2.png';
</script>

<template>
  <div class="cloud-example">
    <div class="container">
      <div class="exampleBody">
        <div class="title">
          <span class="title_1">平台化</span>
          <span class="title_2">交付及管控</span>
        </div>
        <div class="exampleBodyContent">
          <div class="left">
            <div class="leftTopTitle">
              <div class="bottomTitle">
                <div class="titleBox">实时流量监控</div>
                <div class="titleBox">智能生成报告</div>
              </div>
              <div class="bottomComment">
                “云桥通海外云专线平台”支持实时监控、流量图及报告生成等智能功能，减少运维的复杂性，提升工作效率。
              </div>
            </div>
            <img v-lazy="cloud_example_1" alt="" />
            <div class="leftBottomTitle">
              <div class="bottomTitle">
                <div class="titleBox">实时流量监控</div>
                <div class="titleBox">智能生成报告</div>
              </div>
              <div class="bottomComment">
                “云桥通海外云专线平台”支持实时监控、流量图及报告生成等智能功能，减少运维的复杂性，提升工作效率。
              </div>
            </div>
          </div>
          <div class="right">
            <div class="rightTopTittle">
              <div class="topTitle">
                <div class="titleBox">简易化操作</div>
                <div class="titleBox">一键开通/扩容</div>
              </div>
              <div class="topComment">
                “云桥通海外云专线平台”
                支持线上申请、订阅、购买和管理自己的网络，提供一键创建、扩容等快速响应功能，相比其他服务商更加灵活，可解决客户迫切需求，最快实现24H内开通、扩容等服务。
              </div>
            </div>
            <img v-lazy="cloud_example_2" alt="" />
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<style lang="scss" scoped>
.cloud-example {
  width: 100%;

  .exampleBody {
    padding-top: 110px;
    padding-bottom: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    .title {
      margin-bottom: 72px;
      .title_1 {
        font-family: 'SourceHanSansCN-Bold';
        font-weight: 700;
        font-size: 36px;
        /* 定义渐变色背景 */
        background: linear-gradient(to right, #5b9bc7, #3e5898);
        /* 设置背景剪切区域为文本 */
        -webkit-background-clip: text;
        /* 设置文本填充颜色为透明，只显示渐变色背景 */
        -webkit-text-fill-color: transparent;
        letter-spacing: 4px;
      }
      .title_2 {
        font-family: 'SourceHanSansCN-Normal';
        font-size: 36px;
        color: #484848;
        letter-spacing: 4px;
      }
    }
    .exampleBodyContent {
      display: flex;
      justify-content: center;
      .left {
        margin-right: 37px;
        width: 500px;
        display: flex;
        flex-direction: column;

        .leftTopTitle {
          display: none;
        }
        // .leftBottmTitle {
        // }
        .bottomTitle {
          margin-top: 85px;
          margin-bottom: 35px;
          display: flex;
          justify-content: space-between;
          align-self: flex-end;
          width: 382px;
          .titleBox {
            width: 173px;
            height: 40px;
            background-image: linear-gradient(90deg, #00a1ff 0%, #00c4d6 100%);
            border-radius: 20px;
            font-family: 'SourceHanSansCN-Normal';
            font-size: 20px;
            color: #fbf9fb;
            display: flex;
            justify-content: center;
            align-items: center;
          }
        }
        .bottomComment {
          font-family: 'SourceHanSansCN-Normal';
          line-height: 30px;
          font-size: 20px;
          color: #4c4c4c;
        }
      }
      .right {
        margin-left: 37px;
        width: 500px;
        display: flex;
        flex-direction: column;
        .rightTopTittle {
          margin-bottom: 42px;
        }
        .topTitle {
          margin-top: 16px;
          margin-bottom: 22px;
          display: flex;
          justify-content: space-between;
          align-self: flex-start;
          width: 382px;
          .titleBox {
            width: 173px;
            height: 40px;
            background-image: linear-gradient(90deg, #00a1ff 0%, #00c4d6 100%);
            border-radius: 20px;
            font-family: 'SourceHanSansCN-Normal';
            font-size: 20px;
            color: #fbf9fb;
            display: flex;
            justify-content: center;
            align-items: center;
          }
        }
        .topComment {
          font-family: 'SourceHanSansCN-Normal';
          line-height: 30px;
          font-size: 20px;
          color: #4c4c4c;
        }
      }
    }
  }
}

// xl(1200px)至xxl(1600px)
@media screen and (min-width: 1201px) and (max-width: 1600px) {
  .container {
    width: 85%;
  }
}
// lg(992px)至xl(1200px)
@media screen and (min-width: 993px) and (max-width: 1200px) {
  .container {
    width: 95%;
  }
}

// md(768px)至lg(992px)
// sm(576px)至md(768px)
@media screen and (max-width: 992px) {
  .container {
    width: 600px;
    .exampleBody {
      .exampleBodyContent {
        flex-wrap: wrap;
        .left {
          width: 100%;
          margin-right: 0;
          .leftTopTitle {
            display: block;
            margin-bottom: 20px;
            .bottomTitle {
              margin-top: 0;
              width: 100%;
              display: flex;
              justify-content: center;
              .titleBox {
                margin: 0 10px;
              }
            }
          }
          .leftBottomTitle {
            display: none;
          }
        }

        .right {
          width: 100%;
          margin-left: 0;
          margin-top: 50px;
          .rightTopTittle {
            margin-bottom: 20px;
            .topTitle {
              width: 100%;
              display: flex;
              justify-content: center;
              .titleBox {
                margin: 0 10px;
              }
            }
          }
        }
      }
    }
  }
}
</style>
